package nl.devatwork.hello.world.portlets;

import nl.devatwork.hello.world.service.HelloWorldServiceUtil;

import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

public class SayHelloPortlet extends GenericPortlet {
    public void doView(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException {
    	System.out.println("calling portlet here..................");
        String msg = HelloWorldServiceUtil.sayHello("Liferay Dev");
        System.out.println("calling portlet here.................."+msg);
        response.setContentType("text/html");
        response.getWriter().print(msg);
    }
}